package com.ciaj.module.sys.entity.po;

import com.ciaj.base.bean.SupperEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 系统日志 Gen Entity
* </p>
*
* @author ciaj.
* @since 2020-08-14
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysLog对象", description="系统日志")
public class SysLog extends SupperEntity<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志类型（system,operation,...）")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "请求IP")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "请求时长(毫秒)")
    @TableField("time")
    private Long time;

    @ApiModelProperty(value = "用户操作")
    @TableField("operation")
    private String operation;

    @ApiModelProperty(value = "请求方法")
    @TableField("method")
    private String method;

    @ApiModelProperty(value = "请求参数")
    @TableField("params")
    private String params;

    @ApiModelProperty(value = "备注")
    @TableField("description")
    private String description;


}
